home *** CD-ROM | disk | FTP | other *** search
- /* Tab size 4 */
-
- typedef unsigned char uchar;
- typedef unsigned short ushort;
- typedef unsigned long ulong;
- typedef char string;
- typedef char *strptr;
-
-
-
- /*
- IFF types
- */
-
- strptr "????" = "Unknown";
- strptr ILBM = "Picture";
- strptr SMUS = "Music";
- strptr "8SVX" = "Sample";
- strptr RESC = "Resource";
- strptr CTLG = "Catalog";
- strptr FTXT = "Text";
- strptr "MAP " = "Map";
- strptr PREF = "Preference";
- strptr WORD = "Document";
-
-
-
-
- /*
- Non specific chunks
- */
-
- strptr "*NAME";
- strptr "*ANNO";
- strptr "*CHRS";
- strptr "*(c) ";
- strptr "*AUTH";
- strptr "*FVER";
- char "*BODY"[]; /* List of bytes */
- struct ColorMap "*CMAP"[]; /* List of red/green/blue */
-
-
-
-
- /* ILBM chunks */
-
-
- struct BitMapHeader {
- ushort width; /* Sizes */
- ushort height;
- ushort xPos; /* Positions */
- ushort yPos;
- uchar nPlanes; /* Depth */
- uchar masking; /* Mask mode */
- uchar compression; /* Compression mode */
- char PAD; /* unused */
- short transparentColor; /* The transparent color number */
- uchar xAspect; /* Picture Deformation */
- uchar yAspect;
- ushort pageWidth; /* Size of the page to display this picture */
- ushort pageHeight;
- };
-
- struct ColorMap {
- uchar red;
- uchar green;
- uchar blue;
- };
-
- struct ColorRange {
- short PAD;
- ushort rate;
- ushort active;
- uchar low;
- uchar high;
- };
-
- struct GraphicCraft {
- short direction;
- uchar start;
- uchar end;
- ushort seconds;
- ushort microseconds;
- short PAD;
- };
-
- struct Point2D {
- short x;
- short y;
- };
-
- struct DestinationMerge {
- uchar depth;
- char PAD;
- ushort planePick;
- ushort planeOnOff;
- ushort planeMask;
- };
-
-
-
-
-
- struct BitMapHeader *ILBMBMHD; /* A bitmap definition */
-
- struct BitMapHeader *CHNKBMHD; /* A bitmap definition for chunky IFF */
-
- short *ILBMSPRT;
-
- struct ColorRange *ILBMCRNG;
-
- struct GraphicCraft *ILBMCCRT;
-
- struct Point2D *ILBMGRAB;
-
- struct DestinationMerge *ILBMDEST;
-
- long *ILBMCAMG;
-
-
-
- /* 8SVX chunks */
-
- struct Voice8Header {
- ulong oneShotHiSamples;
- ulong repeatHiSamples;
- ulong samplesPerHiCycle;
- ushort samplesPerSec;
- uchar ctOctave;
- uchar sCompression;
- ulong volume;
- };
-
- struct AttackRelease {
- ushort duration;
- ulong dest;
- };
-
-
- struct Voice8Header *"8SVXVHDR";
- struct AttackRelease *"8SVXATAK";
- struct AttackRelease *"8SVXRLSE";
- short *"8SVXCHAN";
-
-
-
-
-
- /* CTLG format */
-
-
- struct StringList {
- long identifier;
- long size;
- char szstring[];
- };
-
-
-
- strptr CTLGLANG;
- struct StringList CTLGSTRS[];
- char CTLGCSET[];
-
-
-
-
-
- /*
- The following are good examples.
- They are the definition of the structure present into my
- resource files
- */
-
- struct RWindow {
- short Left;
- short Top;
- ushort Width;
- ushort Height;
- ulong Flags;
- ulong IDCMP;
- ulong Prefs;
- uchar OptionFlags;
- uchar PAD;
- ushort MinWidth;
- ushort MinHeight;
- ushort MaxWidth;
- ushort MaxHeight;
- };
-
- struct RGadget {
- ushort ID;
- ushort Parent;
- uchar Type;
- uchar SubType;
- short Left;
- short Top;
- ushort Width;
- ushort Height;
- uchar Flags;
- uchar TextHorizJust;
- uchar TextVertJust;
- uchar TextColor;
- short TextInterline;
- ushort TextBorderLeft;
- ushort TextBorderRight;
- uchar BorderType;
- uchar BorderColor;
- uchar BorderTopColor;
- uchar BorderBottomColor;
- uchar PictureFlags;
- uchar reserved;
- };
-
- struct RFunction {
- ushort Type;
- uchar Flags;
- char reserved;
- ushort Link;
- strptr String;
- };
-
- struct RMenuHeader {
- uchar Flags;
- uchar BackColor;
- uchar BorderType;
- uchar BorderTopColor;
- uchar BorderBottomColor;
- uchar BorderColor;
- short BorderLeft;
- short BorderTop;
- ushort BorderRight;
- ushort BorderBottom;
- ushort InsideXBorder;
- ushort InsideYBorder;
- ushort Interline;
- ushort Empty;
- ushort Separator;
- ushort Vertical;
- ushort TextXBorder;
- ushort InterSeparator;
- uchar CheckMarkType;
- uchar Speed;
- uchar Remain;
- char reserved;
- };
-
- struct RColor {
- uchar NormalText;
- uchar SelectedText;
- uchar NormalBack;
- uchar SelectedBack;
- };
-
- struct RMenu {
- uchar Type;
- uchar Flags;
- uchar Depth;
- uchar TextJust;
- struct RColor Colors;
- };
-
- struct RPicture {
- uchar Flags;
- char PAD;
- ushort Link;
- };
-
- struct RPattern {
- ushort Height;
- uchar Color;
- char PAD;
- char Data[];
- };
-
- struct REdit {
- uchar Flags;
- uchar SelTextColor;
- uchar SelBackColor;
- uchar EmptyColor;
- uchar DisplayFlags;
- uchar Border;
- uchar CurTextColor;
- uchar CurBackColor;
- uchar CursorFlags;
- uchar CursorWidth;
- ushort CursorSpeed;
- ushort MinimumSize;
- ushort BufferSize;
- };
-
- struct RList {
- uchar Flags;
- uchar SelectedColor;
- uchar PicturePosition;
- char PAD;
- ushort BorderLeft;
- ushort BorderRight;
- ushort BorderTop;
- ushort BorderBottom;
- };
-
- struct RFont {
- ushort YSize;
- uchar Style;
- uchar Flags;
- strptr Name;
- };
-
- struct RType {
- ushort Type;
- strptr Name;
- };
-
- strptr RESCTEXT;
- strptr RESCWMSG;
- strptr RESCACTV;
- strptr "RESCUP ";
- strptr "RESCTOP ";
- strptr RESCDOWN;
- strptr RESCBTTM;
- strptr RESCNEXT;
- strptr RESCPREV;
- strptr RESCLINK;
- strptr RESCPRNT;
- struct RWindow *RESCWIND;
- struct RGadget *RESCGADG;
- struct RFunction *RESCFUNC;
- strptr RESCMFNC;
- struct RMenuHeader *RESCMNHD;
- struct RMenu *RESCMENU;
- struct RPicture *RESCPINF;
- struct RPattern *RESCPATN;
- ushort *RESCFCUS;
- struct REdit *RESCEDIT;
- struct RList *RESCLIST;
- struct RFont *RESCFONT;
- struct RType *RESCTYPE;
-
-